<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>Books: <%= controller.action_name %></title>
  <%= stylesheet_link_tag 'library', :media => "all" %>
</head>
<body id="books">

  <div id="banner">
    <%= @page_title || "Livros" %>
  </div>
  <div id="columns">
    <div id="side">
      <% if session[:boss_id] %>
        <p>
          <%= link_to "Adicionar Livro", :controller => 'books', :action => 'new' %><br />
          <%= link_to "Procurar Livro", :controller => 'books', :action => 'index' %>
        </p>
        <p>
          <%= link_to "Adicionar Administrador", :controller => 'bosses', :action => 'new' %><br/>
          <%= link_to "Excluir Administrador", :controller => 'bosses', :action => 'index' %><br/>
          <%= link_to "Logout", :controller => 'admin', :action => 'logout' %>
        </p>
        <p>
          <%= link_to "Adicionar Usuário", :controller => 'users', :action => 'new' %><br />
          <%= link_to "Procurar Usuário", :controller => 'users', :action => 'index' %>
        </p>
        <p>
          <%= link_to "Procurar Empréstimo", :controller => 'rentals', :action => 'index' %><br />
          <%= link_to "Novo Empréstimo", :controller => 'rentals', :action => 'new' %>
        </p>
      <% end %>
      <p>
        <a href="http://www.abub.org.br">Quem somos nós</a><br />
        <a href="http://www.abu.redecasd.ita.br">Site da ABU-ITA</a><br />
      </p>
    </div>
    <div id="main">
      <% if flash[:notice] -%>
       <div id="notice"><%= flash[:notice] %></div>
      <% end -%>

      <%= yield :layout %>
      
    </div>
  </div>

<div align="center" >
  <br />Aliança Bíblica Universitária do ITA <br />Estudante Alcançando Estudande
</div>

</body>
</html>
